POV-Ray : Newsgroups : povray.animations : sunpos.inc and sunrise, sunset : sunpos.inc and sunrise, sunset Server Time
8 Jul 2024 16:49:22 EDT (-0400)
  sunpos.inc and sunrise, sunset  
From: davidafisher
Date: 2 Nov 2002 08:20:09
Message: <web.3dc3cfbec87668a667ebf1b60@news.povray.org>
I'm animating sunset and sunrise using SunPos as a light source set as

light_source {
              <0,0,0>      //0*x light's position starts at the origin
              color White  // light's color
              translate SunPos(Year, Month, Day, Hour, Minute, Lstm, LAT,
LONG);
}

and placing a sun in the sky by using skysphere as:

sky_sphere {
            pigment {gradient y
            color_map {[0.0 radians(0.03333) color Yellow   //for the sun
disk                                        color Yellow]
                       [radians(0.03333) (1-cos(radians(Al)))/2 color Blue
                                                                color Blue]
                       [(1-cos(radians(90-Al)))/2 color rgb<0.0,0.0,0.6156>]
                      }
            scale 2
            translate -1
           }
    //clouds
           pigment { etc etc.......

It works fine except as soon as the center of the light source hits the
horizon (given by Al, - Altitude)the whole light source and sun disk
disappear!

What do I need to do to continue to see the parts of the sun that remain
above the horizon until it should completely disappears (or appear for
sunrise)?

David


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.